CC = gcc
CFLAGS = -Wall -g
LDFLAGS = -lm
HEADER = -I $(HOME)/include
SRCS = $(wildcard *.c)
OBJS = $(patsubst %.c,%.o,$(SRCS))

run:$(OBJS)
	@$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
	@objdump -S run > main.s
	@echo $(OBJS)

%.o:%.c
	$(CC) $(CFLAGS) $(HEADER) -o $@ -c $< 

.PHONY:
clean:
	rm -f *.o run core.* *.s



